#include <stdio.h>
#include <stdlib.h>

void sum_diff(float op1, float op2, float* psum, float* pdiff);
int main()
{
    float data1, data2, sum, diff, * psum, * pdiff;
   psum = &sum;
   pdiff = &diff;
    scanf_s("%f%f", &data1, &data2);
    sum_diff(data1, data2, psum, pdiff);
    printf("The sum is %.0f\n The diff is %.0f\n", sum, diff);
    return 0;
}
void sum_diff(float op1, float op2, float* psum, float* pdiff)
{
    *psum = op1 + op2;
    *pdiff = op1 - op2;
}